Tamara\Wp\Plugin\TamaraCheckout D

Total Complexity 209
Dependencies 17
Dependents 13
Total lines 1,779
Lines of code 974
Logical lines of code 424
Comment lines 494
Methods 85
Properties 5

Methods 85

Method Rating Maintainability Complexity Lines of code
tamaraRefundPayment()
A
41 11 55
updateTamaraCheckoutDataToOrder()
A
46 10 36
handleTamaraApi()
A
47 7 37
adjustTamaraPaymentTypesOnCheckout()
S
54 7 20
addTamaraWidgetScript()
S
48 4 50
authoriseOrder()
S
58 6 15
forceRequireBillingPhone()
S
60 6 12
tamaraProductPopupWidget()
S
54 5 20
updatePayByInstalmentSettingUrl()
S
64 6 8
getTotalToCalculate()
S
60 5 13
initPlugin()
S
46 3 36
registerTamaraCustomOrderStatuses()
S
43 1 65
registerServices()
S
57 4 18
forceAuthoriseTamaraOrder()
S
50 3 30
isTamaraAdminSettingsScreen()
S
68 5 6
enqueueAdminSettingScripts()
S
61 4 12
handleTamaraCancelUrl()
S
53 3 23
handleTamaraFailureUrl()
S
53 3 23
getTamaraOrderByWcOrderId()
S
56 3 19
tamaraAuthoriseHandler()
S
58 3 16
isProductPriceValid()
S
67 4 7
addTamaraAuthoriseFailedMessage()
S
65 4 8
forceCaptureTamaraOrder()
S
51 2 28
getMaxAmountOfEnabledPriorityInstalment()
S
62 3 12
getMinAmountOfEnabledPriorityInstalment()
S
62 3 12
updateOrderStatusAndAddOrderNote()
S
62 3 11
tamaraCheckoutParams()
S
58 2 17
getTamaraAuthoriseFailedUrl()
S
58 2 16
isOrderTamaraApproved()
S
68 3 7
isRestRequest()
S
72 3 4
initInstanceWithConfig()
S
67 3 8
logMessage()
S
63 3 10
getDisplayedProductPrice()
S
66 3 9
populateMinAmountArrayOfEnabledPayInXs()
S
64 3 10
populateMaxAmountArrayOfEnabledPayInXs()
S
64 3 10
tamaraSuccessHtml()
S
58 2 14
addCronJobTriggerScript()
S
58 1 20
addTamaraCustomOrderStatuses()
S
57 1 17
activatePlugin()
S
70 2 6
showTamaraProductPopupWidget()
S
74 2 5
adjustBillingPhoneDescription()
S
68 2 7
getTamaraAuthoriseSuccessUrl()
S
72 2 6
checkWooCommerceExistence()
S
64 2 9
__construct()
S
70 2 6
doAuthoriseOrderAction()
S
72 2 5
getTamaraOrderId()
S
69 2 7
getAdminSettingLink()
S
66 2 8
addAuthoriseSuccessUrlToMetaTag()
S
64 2 10
addRefundNote()
S
67 2 7
performCron()
S
68 2 8
logMessageFilePath()
S
77 2 3
getPriorityInstalmentPeriod()
S
64 2 10
enqueueScripts()
S
64 2 9
getPayInXIds()
S
64 1 14
populateRestApiRequest()
S
77 1 4
setRestApiRequest()
S
81 1 3
getRestApiRequest()
S
82 1 3
getServiceView()
S
79 1 3
getService()
S
80 1 3
removeTrailingSlashes()
S
79 1 3
isPayByInstalmentsEnabled()
S
78 1 3
getWCTamaraGatewayService()
S
80 1 3
getTamaraPopupWidgetPosition()
S
79 1 3
isTamaraGatewayEnabled()
S
78 1 3
isCustomLogMessageEnabled()
S
78 1 3
isForceBillingPhoneEnabled()
S
78 1 3
isCronjobEnabled()
S
78 1 3
getWCTamaraGatewayOptions()
S
79 1 3
getWCTamaraGatewayOptionKey()
S
80 1 3
onSaveSettings()
S
80 1 3
logMessageFileUrl()
S
78 1 3
isPayByLaterEnabled()
S
78 1 3
tamaraLoadTextDomain()
S
71 1 5
getWCTamaraGatewayPayByInstalmentsService()
S
80 1 3
getWCTamaraGatewayPayInXService()
S
75 1 4
isOrderAuthorised()
S
78 1 3
preventOrderCancelAction()
S
71 1 6
calculateInstalmentPlan()
S
63 1 10
handleTamaraSuccessUrl()
S
71 1 6
isPayInXEnabled()
S
77 1 3
addCustomRewriteRules()
S
68 1 7
addSettingsLinks()
S
71 1 5
noticeNonWooCommerce()
S
70 1 6
registerTamaraPaymentGateway()
S
76 1 4
deactivatePlugin()
S
81 1 3